//
//  SiteAnnotation.m
//  Penglai
//
//  Created by intel intel on 12-5-29.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "ShopAnnotation.h"

@implementation ShopAnnotation
@synthesize shopData;

- (CLLocationCoordinate2D)coordinate;
{
    CLLocationCoordinate2D theCoordinate;
    theCoordinate.latitude = [[shopData objectForKey:@"latitude"] doubleValue];
    theCoordinate.longitude = [[shopData objectForKey:@"longitude"] doubleValue];
    return theCoordinate; 
}

- (NSString *)subtitle
{
    return [NSString stringWithFormat:@"时间:%@ 误差距离:%@",[shopData objectForKey:@"time"],[shopData objectForKey:@"errorSpan"]] ;
}

- (NSString *)title
{
    return [shopData objectForKey:@"name"];
}

@end
